package com.mvd.app.commons;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

/**
 * @ProjectName: PDA_An_2020
 * @Package: com.mvd.app.commons
 * @ClassName: DateUtilTest3
 * @Description: java类作用描述
 * @Author: liuxj
 * @CreateDate: 2021-05-18 13:52
 * @UpdateUser: 更新者
 * @UpdateDate: 2021-05-18 13:52
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class DateUtilTest3 {
    @Before
    public void setUp() throws Exception {

    }

    @After
    public void tearDown() throws Exception {

    }

    @Test
    public void main() throws Exception {

        String registerTime = "/Date(1270569600000)/";
        String registerTime2 = "/Date(1289923200000)/";


        String str = registerTime.substring(6, registerTime.length() - 2).trim();
//        String comparisonDate = "2013-03-01";
        String registerdate = DateUtil.getDateTimeFromMillisecond(Long.parseLong(str));

//        String registerdateFormat = DateUtil.getDateForSurplus(str);
        System.out.println("re22==" + registerdate);
    }

}